package com.dragon.aipictures.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RedissonConfig {

    public static RedissonClient createRedissonClient() {
        Config config = new Config();
        config.useSingleServer()
                .setAddress("redis://192.168.67.128")
                .setPassword("asdf;lkj")
                .setDatabase(0);

        return Redisson.create(config);
    }
}